package com.itheima.health.vo;
/**
 *订单提交待用类
 */

import lombok.Data;

import java.util.Date;
import java.util.Objects;

@Data
    public class OrderSubmitParam {
        private String name;
        private String sex;
        private String telephone;
        private String validateCode;
        private String idCard;
        private Date orderDate;
        private Integer setMealId;

        public OrderSubmitParam() {
        }

        public OrderSubmitParam(String name, String sex, String telephone, String validateCode, String idCard, Date orderDate, Integer setMealId) {
            this.name = name;
            this.sex = sex;
            this.telephone = telephone;
            this.validateCode = validateCode;
            this.idCard = idCard;
            this.orderDate = orderDate;
            this.setMealId = setMealId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getTelephone() {
            return telephone;
        }

        public void setTelephone(String telephone) {
            this.telephone = telephone;
        }

        public String getValidateCode() {
            return validateCode;
        }

        public void setValidateCode(String validateCode) {
            this.validateCode = validateCode;
        }

        public String getIdCard() {
            return idCard;
        }

        public void setIdCard(String idCard) {
            this.idCard = idCard;
        }

        public Date getOrderDate() {
            return orderDate;
        }

        public void setOrderDate(Date orderDate) {
            this.orderDate = orderDate;
        }

        public Integer getSetMealId() {
            return setMealId;
        }

        public void setSetMealId(Integer setMealId) {
            this.setMealId = setMealId;
        }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OrderSubmitParam that = (OrderSubmitParam) o;
        return Objects.equals(name, that.name) && Objects.equals(sex, that.sex) && Objects.equals(telephone, that.telephone) && Objects.equals(validateCode, that.validateCode) && Objects.equals(idCard, that.idCard) && Objects.equals(orderDate, that.orderDate) && Objects.equals(setMealId, that.setMealId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, sex, telephone, validateCode, idCard, orderDate, setMealId);
    }

    @Override
    public String toString() {
        return "OrderSubmitParam{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", telephone='" + telephone + '\'' +
                ", validateCode='" + validateCode + '\'' +
                ", idCard='" + idCard + '\'' +
                ", orderDate=" + orderDate +
                ", setMealId=" + setMealId +
                '}';
    }
}

